<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page session="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/resources/css/jquery.mobile-1.4.2.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/resources/css/app.css">
<script
	src="${pageContext.request.contextPath}/resources/js/jquery-1.11.0.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/jquery.mobile-1.4.2.min.js"></script>
<script
	src="${pageContext.request.contextPath}/resources/js/jquery.validate.min.js"></script>
<script type="text/javascript">
	$.mobile.ignoreContentEnabled = true;
</script>
<title>Bienvenido</title>

</head>

<body>

	<div data-role="page" data-ajax="false" data-theme="a"
		data-ajax="false">
		<div data-role="header" data-id="header">
			<center>
				<h1>Bienvenido al sistema GeoManagement</h1>
			</center>
		</div>
		<div role="main" class="ui.content">
			<div class="centered-content">

				<table>
					<!-- MENU GERENTE -->
					<c:if test="${sessionScope.rol==1}">
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/index_gerente"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-user"
								data-ajax="false">Rol Gerente</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/index_agente"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-user"
								data-ajax="false">Rol Agente</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/actualizar_datos_usuario"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-gear"
								data-ajax="false">Administrar cuenta</a></td>
						</tr>
					</c:if>
					<!-- MENU AGENTE -->
					<c:if test="${sessionScope.rol==2}">
						<tr>
							<td><a href="${pageContext.request.contextPath}/agent_panel"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-location"
								" data-ajax="false" target="_blank">Cuadro de Mando</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/registrar_propiedad"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-home"
								data-ajax="false">Registrar Propiedad y Propietario</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/consultar_visita_pendiente"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-clock"
								data-ajax="false">Ver Visitas sin finalizar</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/programar_visita"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-calendar"
								data-ajax="false">Programar una Visita</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/actualizar_datos_usuario"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-gear"
								data-ajax="false">Administrar cuenta</a></td>
						</tr>
					</c:if>

					<!-- MENU ADMINISTRADOR -->
					<c:if test="${sessionScope.rol==3}">
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/registrar_usuario"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-user"
								data-ajax="false">Registrar un Gerente</a></td>
						</tr>
						<tr>
							<td><a href="${pageContext.request.contextPath}/data_upload"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-arrow-u"
								data-ajax="false">Carga masiva</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/programar_visita"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-calendar"
								data-ajax="false">Programar una Visita</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/consultar_visita_agendada"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-clock"
								data-ajax="false">Ver visitas agendadas</a></td>
						</tr>
						<tr>
							<td><a
								href="${pageContext.request.contextPath}/actualizar_datos_usuario"
								class="ui-btn ui-shadow ui-btn-icon-right ui-icon-gear"
								data-ajax="false">Administrar cuenta</a></td>
						</tr>
					</c:if>
					<tr>
						<td><a href="${pageContext.request.contextPath}/logout"
							class="ui-btn ui-btn-b ui-shadow">Salir</a></td>
					</tr>
				</table>
			</div>
		</div>
		<!-- <div data-role="footer" data-position="fixed" style="text-align:center; padding: 15px;">
		V 0.2.14 <span style="float:right;margin-right: 50px; font-family: calibri;">Desarrollado por SolidIT</span>
		</div> -->
	</div>
</body>
</html>